import QtQuick 1.0

Rectangle {
    id: _root
    width: parent.width
    height: parent.height
    radius: 5
    gradient: Gradient {
        GradientStop {
            position: 0
            color: "#040240"
        }

        GradientStop {
            position: 1
            color: "#000a16"
        }
    }
    border.width: 2
    border.color: "#1091d1"
    x: 0
    y: 0
    clip: true

    property string dialogTitle: "title"
    property alias titleHeight: _title.height
    property alias titleBottom: _title.bottom
    property real density: 1.0

    Rectangle{
        id: _title
        anchors.top: parent.top
        anchors.left: parent.left
        anchors.right: parent.right
        height: _titleText.height + 10
        radius: 5
        gradient: Gradient {
            GradientStop {
                position: 0
                color: "#0000ff"
            }

            GradientStop {
                position: 1
                color: "#000000"
            }
        }
        border.width: 2
        border.color: "#1091d1"

        Text {
            id: _titleText
            color: "#ffffff"
            anchors.centerIn: parent
            text: dialogTitle
            font.bold: true
//            font.pixelSize: _Setting.fontPixelSizeDlgMessageS * density

        }

    }


    MouseArea {
        anchors.fill: parent
        onClicked: {
//            _root.forceActiveFocus();
        }
    }

}
